/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ac.za.cput.xalisa.designpatterns.creational.singleton;

/**
 *
 * @author Enkosi
 */
public class MainDriver {
    public static void main(String [] args){
        Singleton a = Singleton.instance();
        Singleton b = Singleton.instance();
        
        a.getStudent().setName("jack");
        b.getStudent().setName("Amith");
        
        System.out.println(a.getStudent().getName());
        System.out.println(b.getStudent().getName());
    }
}
